mkchangelog: Try to replace some unhandled html operators.
authoroliskoli <oliskoli>
Thu, 21 Aug 2008 21:24:46 +0000 (21:24 +0000)
committeroliskoli <oliskoli>
Thu, 21 Aug 2008 21:24:46 +0000 (21:24 +0000)
tools/mkchangelog

index 9d1a27d405ec0156f62698ebc47863e1b9c91732..52043f0418e30bedc2f65580c4465c65f2ccc652 100755 (executable)
@@ -8,6 +8,8 @@
 
 LANG='POSIX'; export LANG > /dev/null
 
+sed -e 's/^[ \t]*//;s/[ \t]*$//' | # trim leading and trailing spaces
+sed -e 's/ < / \&lt; /g' -e 's/ > /\&gt; /g' | # try replace some unhandled html operators
 sed -e :a -e 's/<[^<]*>/ /g;/</{N;s/\n/ /;ba;}' | # remove most html tags
 sed -e 's/&nbsp;/ /g' -e 's/&amp;/\&/g' -e 's/&gt;/\>/g' -e 's/&lt;/\</g'| # replace HTML special chars
 sed -e 's/^[ \t]*//;s/[ \t]*$//' | # trim leading and trailing spaces